You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(auth): exclude retired organization columns from adapter queries - #7813
Keep Better Auth organization reads, inserts, and returned rows on the live-column projection, including transaction callbacks.
Preserve the database schema; deploy this prep before dropping organization.departed_member_usage.
Cover the real adapter with SQL regressions and PostgreSQL CRUD tests before and after the column drop, and run the PostgreSQL tests in both CI provisioning paths.
Remove the flaky integration-mention context test that intermittently exceeds the test timeout.
Applies the projection to ordinary and transactional adapter operations.
Adds SQL-level and PostgreSQL CRUD coverage before and after the planned column drop.
Adds the PostgreSQL adapter suite to CI and documents the deployment ordering.
Also removes an unrelated Copilot integration-resolution regression test.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Better Auth organization operation] --> B[createSimAuthAdapter]
B --> C[AUTH_SCHEMA organization projection]
C --> D[Live organization columns only]
D --> E[(PostgreSQL organization table)]
E --> F[Retired column can be dropped after deployment]
The integration-context case was removed intentionally under the request to remove nondeterministic tests. It passed in isolation but exceeded the 10-second timeout in CI. The loss of this specific regression case is acknowledged; the remaining context tests and the new SQL/PostgreSQL adapter coverage are retained and passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
organization.departed_member_usage.Type of Change
Testing
Checklist